/**
 * 
 */
package neptune.console.cli.commands;

import java.util.List;

import neptune.console.CLCommand;
import neptune.console.NeptuneCLI;

import org.springframework.stereotype.Component;

/**
 * @author Roberto Bifulco [info@robertobifulco.it]
 * 
 */
@Component
public class ConfExpNetwork implements CLCommand {

	/*
	 * (non-Javadoc)
	 * 
	 * @see neptune.console.CLCommand#getCommandHelp()
	 */
	@Override
	public String getCommandHelp() {
		return "Configures the given experiment's network";
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see neptune.console.CLCommand#getCommandName()
	 */
	@Override
	public String getCommandName() {
		return "confExpNetwork";
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see neptune.console.CLCommand#getParamsDescription()
	 */
	@Override
	public String getParamsDescription() {
		return "<exp_name>";
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see neptune.console.CLCommand#processCommand(java.util.List)
	 */
	@Override
	public void processCommand(List<String> args) throws Exception {
		NeptuneCLI.getNeptune().configureExperiment(args.remove(0));
	}

}
